package com.zhuss.core.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.part.SearchPartBo;
import com.zhuss.bean.vo.core.part.DetailPartVo;
import com.zhuss.bean.vo.core.part.ListPartVo;
import com.zhuss.core.db.dao.gen.PartMapper;
import com.zhuss.core.db.entity.Part;

@Mapper
public interface PartDao extends PartMapper {
	
	void create(Part record);
	
	void delete(Part record);
	
	List<Part> listAll();

	List<ListPartVo> list(SearchPartBo bo);

	Integer countList(SearchPartBo bo);

	DetailPartVo detail(@Param("partId") Long partId);
	
	List<Part> listByName(@Param("name") String name);

    
}